<template>
	<view>
		<view v-for="(item,index) in datalist" style="margin: 10rpx;">
			<CustomTextView :nid="item.nID" :title="item.title" :isTop="item.isTop" :author="item.author"
				:comments="item.comments" :time="item.time" @click="onCustomViewClick(index)">
			</CustomTextView>
		</view>
	</view>
</template>

<script>
	import CustomTextView from "../../components/cardViewText.vue"
	export default {
		components: {
			CustomTextView
		},
		data() {
			return {
				// dataObj:{
				// 	title:"“台独”顽固分子沈伯洋被立案侦查",
				// 	isTop:true,
				// 	author:"央视新闻",
				// 	comments:721,
				// 	time:"2025.10.28"
				// }
				datalist: [{
						nID: "T15627",
						title: "苹果的分量",
						isTop: true,
						author: "人民日报",
						comments: 666,
						time: "2025.10.27"
					},
					{
						nID: "B4485",
						title: "美军机南海坠毁 特朗普:可能油不好",
						isTop: false,
						author: "参考消息",
						comments: 1025,
						time: "2025.10.28"
					},
					{
						nID: "T20200721",
						title: "深圳地铁回应印度人在车上吃手抓饭",
						isTop: true,
						author: "向阳VIDEO",
						comments: 566,
						time: "2025.10.27"
					},
					{
						nID: "B041124",
						title: "开拓者vs湖人 杨瀚森替补出战",
						isTop: false,
						author: "腾讯体育",
						comments: 115,
						time: "2025.10.28"
					},
					{
						nID: "T20200",
						title: "长白山天池水被“煮开”系谣言",
						isTop: true,
						author: "新黄河",
						comments: 966,
						time: "2025.10.27"
					}
				]

			}
		},
		methods: {

		}
	}
</script>

<style>

</style>

